<div itemscope itemtype="http://schema.org/Product">
<div class="recipeTitle" itemprop="name">
	<?php echo $this->recipe['recipe_name'];?>
</div>
<?php if ($this->recipe['ingredients_photo']!="") {?>
	<img src="/images/ingredients/<?php echo $this->recipe['ingredients_photo'];?>.jpg" class="recipeImg" />
<?php }?>
<div class="ingredientsTitle">Ингредиенты:</div>
<div class="ingredientsList" itemprop="description">
	<div class="ingredientsListLeft">
		<?php 
		$halfCount = ceil(count($this->recipe['ingredientsArray'])/2);
		$i = 1; 
		foreach ($this->recipe['ingredientsArray'] as $ingredient) {?>
			<div><?php echo $ingredient[0];?>: <?php echo $ingredient[1];?>&nbsp;</div>
			<?php
			if ($i == $halfCount) {?>
				</div><div  class="ingredientsListRight">
			<?php }?>
		<?php 
		$i++;
		}?>
	</div>
</div>
<?php if ($this->recipe['time'] != 0) {?>
	<div class="recipeTime">
		<div>Время приготовления: <?php echo $this->recipe['time'];?> мин</div>
	</div>
<?php }?>
<div class="recipeProcess">
	<?php echo $this->recipe['process'];?>
</div>
<!-- 
<div>
	<?php //echo $this->recipe['info'];?>
</div>

<div>
	<?php //echo $this->recipe['source'];?>
</div>
-->
<img itemprop="image" src="/images/food/<?php echo $this->recipe['photo'];?>.jpg" alt="<?php echo $this->recipe['recipe_name'];?>" title="<?php echo $this->recipe['recipe_name'];?>" class="recipeImg" />
<table cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<g:plusone></g:plusone>
		</td>
		<td>
			<?php
			$desctiption = "";
			foreach ($this->recipe['ingredientsArray'] as $ingredient) {
				$description = $description . $ingredient[0] . ", ";
			}
			$description = substr($description, 0, -2); 
			?>
			<div id="vk_like"></div>
			<script type="text/javascript">
			VK.Widgets.Like("vk_like", {
				type: "mini", 
				pageTitle: "Superveg.org. <?php echo $this->recipe['recipe_name'];?>",
				pageDescription: "<?php echo $description;?>",
				pageImage: "http://superveg.org/images/food/<?php echo $this->recipe['photo'];?>_small.jpg"
			});
			</script>
		</td>
	</tr>
</table>
</div>
<?php if ($this->roleType == "Administrator") {?>
	<div>
		<a href="<?php echo $this->url(array("action" => "edit", "recipeId" => $this->recipe['recipe_id']), "adminRoute");?>">Редактировать</a>
	</div>
<?php }?>
<script type="text/javascript">
  window.___gcfg = {
    lang: 'ru'
  };
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>
